	local soil = {}
	local house = {}
	local coordY = 0
	local coordXLeft = 0
	local coordXRight = 0
	local newScale = 480/director.displayWidth
	local newScaleY = 320/director.displayHeight
	local view = 1
	local movePerson = ""
	
	local screen = director:createRectangle( { x=0, y=0, w=director.displayWidth*2, h=director.displayHeight*2, color={67, 67, 67}, zOrder = -1 } )
	
	local backgrown = director:createSprite ( 0, coordY, "img/soilLeft.png")
	backgrown.xScale = .8/newScale
	backgrown.yScale = .8/newScaleY
	
	local buttonDown = director:createSprite (62/newScale, 29/newScale, "img/buttons.png")
	buttonDown.xAnchor = .5 ; buttonDown.yAnchor = .5
	buttonDown.rotation = 180
	buttonDown.xScale = 1/newScale
	buttonDown.yScale = 1/newScaleY
	local buttonLeft = director:createSprite (29/newScale, 62/newScale, "img/buttons.png")
	buttonLeft.xAnchor = .5 ; buttonLeft.yAnchor = .5
	buttonLeft.rotation = 270
	buttonLeft.xScale = 1/newScale
	buttonLeft.yScale = 1/newScaleY
	local buttonUp = director:createSprite (62/newScale, 94/newScale, "img/buttons.png")
	buttonUp.xAnchor = .5 ; buttonUp.yAnchor = .5
	buttonUp.xScale = 1/newScale
	buttonUp.yScale = 1/newScaleY
	local buttonRight = director:createSprite (94/newScale, 62/newScale, "img/buttons.png")
	buttonRight.xAnchor = .5 ; buttonRight.yAnchor = .5
	buttonRight.rotation = 90
	buttonRight.xScale = 1/newScale
	buttonRight.yScale = 1/newScaleY
	
	for i = 1, 60 do
		if (coordY >= director.displayHeight*2) then
			coordY = 0
			coordXLeft = soil[1].w + soil[i-1].x
			coordXRight = soil[1].w*3/2 + soil[i-1].x
			view = view + 1
		else
			if (view % 2 == 1) then
				soil[i] = director:createSprite ( coordXLeft, coordY, "img/soilLeft.png")
				house[i] = director:createSprite ( soil[i].w/2, soil[i].h/2, "img/houseLeft.png")
			else
				soil[i] = director:createSprite ( coordXRight, coordY, "img/soilRight.png")
				house[i] = director:createSprite ( soil[i].w/2, soil[i].h/2, "img/houseRight.png")
			end
			house[i].xAnchor = .5 ; house[i].yAnchor = .5
			soil[i]:addChild(house[i])
			coordY = coordY + soil[i].h
			backgrown:addChild(soil[i])
		end
	end
	
	local person = director:createSprite(director.displayCenterX, director.displayCenterY, "img/person.png")
	person.xAnchor=0.5; person.yAnchor=.4
	person.xScale=.5/newScale
	person.yScale=.5/newScaleY
	person.rotation=90
	person.zOrder=1
	
	local move = function()
	
		if (movePerson == "up") then
			backgrown.y = backgrown.y-2/newScaleY
			person.rotation=0
			elseif (movePerson == "down") then
				backgrown.y = backgrown.y+2/newScaleY
				person.rotation=180
				elseif (movePerson == "left") then
					backgrown.x = backgrown.x+2/newScale
					person.rotation=270
					elseif (movePerson == "right") then
					backgrown.x = backgrown.x-2/newScale
					person.rotation=90
		end
		
	function buttonUp:touch(event)
		if (event.phase == 'began') then
			movePerson = "up"
			else
			movePerson = ""
		end
	end
	buttonUp:addEventListener('touch', buttonUp)
	
	function buttonDown:touch(event)
		if (event.phase == 'began') then
			movePerson = "down"
		else
			movePerson = ""
		end
	end
	buttonDown:addEventListener('touch', buttonDown)
	
	function buttonLeft:touch(event)
		if (event.phase == 'began') then
			movePerson = "left"
			else
			movePerson = ""
		end
	end
	buttonLeft:addEventListener('touch', buttonLeft)
	
	function buttonRight:touch(event)
		if (event.phase == 'began') then
			movePerson = "right"
			else
			movePerson = ""
		end
	end
	buttonRight:addEventListener('touch', buttonRight)
	
	end

 
    system:addEventListener("update", move)